export function success<R = any>(data: R) {
  return {
    code: 200,
    message: 'success',
    data,
  }
}

export function fail<R = any>(message: string) {
  return {
    code: 400,
    message: message,
    data: null,
  }
}
